const rp = require('request-promise')
const schedule = require('node-schedule')
let url = 'http://www.fuyoushe.com/'
const crawl = async () => {
  for( let i = 0; i < 2000; i++) {
    rp({
      uri: url
    }).then(res => {
      console.log('1')
    }).catch(err => {
      console.log('2')
    })
  }
}

let rule = new schedule.RecurrenceRule()
rule.minute = [new schedule.Range(0, 59)]
rule.second = [0]
schedule.scheduleJob(rule, () => {
  crawl()
})
